﻿/// <reference path="jquery-1.5.1.min.js" />


//enviornment varibales declaration will found in global.variable.js 

//centre div search from select
//var div_center_search_select = '.ui-layout-center .searchfrom select';


var name_article = 'Article';
var layoutOverview_Text = 'Layout Overview';

var div_center_search_select = '.ui-layout-center .searchfrom select';


// var div_center_search_form = '.ui-layout-center .searchfrom form:first';

var div_east_form = '.ui-layout-east form:first';

//Data List div in center
var div_center_list = '.ui-layout-center .list';

//search from in the centre
var div_center_search_form = '.searchfrom';

var string_compare = "string";

var south = '.ui-layout-south';
var north = '.ui-layout-north';
var east = '.ui-layout-east';

var east_container = '.east-container';

var west = '.ui-layout-west';
var center = '.ui-layout-center';

var tab_id = '#tabs';
var tab_0_id = '#tabs-0';
var tab_1_id = '#tabs-1';
var tab_2_id = '#tabs-2';
var tab_3_id = '#tabs-3';
var east_id = '#ui-layout-east';
var div_error_span = 'div.ErrorBar span#resultMessage';
var div_error = 'div.ErrorBar';

var IsDragging = false; // used in storyboard


var publication_foucs = '#PublicationName';
var company_foucs = '#Company_CompanyName';
var user_foucs = '#User_UserName';

var div_east_form_default_foucs = '.ui-layout-east form:first *:input:visible:enabled:first';
var div_article_form_default_foucs = '#article-form *:input:visible:enabled:first';

var article_form = '#article-form';
var div_article = 'div.article';

var ScrollTarget = NaN;
var ScrollTop = NaN;
var CrruntTarget = NaN;

(function ($) {


//    $.south = '.ui-layout-south';

//    $.north = '.ui-layout-north';

//    $.east = '.ui-layout-east';

//    $.west = '.ui-layout-west';

//    $.center = '.ui-layout-center';


});


function CrearteUrl(action, data){
    
    if(action && data){
        if(action.indexOf('?')>-1){
            action = action +'&'+ data;
        }
        else{
            action = action +'?'+ data;
        }
    }
    return action;

}

